<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td valign="top">
        <div class='listmoduleleft'>
			<?php echo $listcatmodunle?>
        </div>
		</td>
		<td valign="top" width="80%" style="border-left:1px solid #dddddd;">
<?php
if(count($categories)>0)
{
?>
	<form name="form_admin" method="post" action="<?php echo formAction('updatestatus')?>" >
	<table width="100%" border="0" cellpadding="4" cellspacing="1" id="tblsort">
		<tr class="headtb" nodrop="true" nodrag="true">
			<td width="5%" ><?php echo getLang('Order')?></td>
			<td width="20%" ><?php echo getLang('Name')?></td>
			<td width="10%" ><?php echo getLang('Status')?></td>
			<td width="20%" ><?php echo getLang('Actions')?></td>
			<td></td>
		</tr>
	   <?php
		foreach($categories as $i => $category)
		{
		?>
			<tr>
				<td align="center">
					<input class="ordertext" id="listorder_<?php echo $i?>" name="listorder[]"
					value="<?php echo getOrderList($i)?>"/>
				</td>
				<td nowrap="nowrap" style="padding-left:10px" valign="middle">
                    <?php echo linkAction('edit',$category['cName'],'id='.$category['iId'])?>
					<input type="hidden" name="listid[]" value="<?php echo $category['iId']?>" />
				</td>
				<td align="center">
					<select id="liststatus_<?php echo $i?>" name="liststatus[]">
						<?php echo liststatus($category["iStatus"]) ?>
					</select>
				</td>

				<td align="center">
					<?php echo linkAction('edit',getLang('Edit'),'id='.$category['iId'])?> -
                    <?php echo linkAction('delete',getLang('Delete'),'id='.$category['iId'])?>
				</td>
				<td></td>
			</tr>
		<?php
		}
		?>
		</table>
	</form>
	<script type="text/javascript">
	(new TableDnD).init("tblsort");
	</script>
<?php
}
else
{
?>
<form name="form_admin" method="post" action="<?php echo formAction('updatestatuscontent')?>">
    <table width="100%"  cellpadding="4" cellspacing="1" id="tblsort">
    	<tr class="headtb" nodrop="true" nodrag="true">
    		<td width="5%" ><?php echo getLang('Order')?></td>
            <td width="5%"><?php echo inputCheckAll()?></td>
    		<td width="20%" >Content Name</td>
    		<td width="10%" ><?php echo getLang('Status')?></td>
    		<td width="20%" ><?php echo getLang('Actions')?></td>
    		<td>&nbsp;</td>
    	</tr>
        <?php
        if(!is_array($videos))$videos=array();
    	foreach($videos as $i => $video)
    	{
    	?>
    	<tr>
    		<td align=center>
    			<input class="ordertext" id="listorder_<?php echo $i?>" name="listorder[]"
    			value="<?php echo getOrderList($i)?>">
    		</td>
            <td align="center"><?php echo inputCheck($video['iId'])?></td>
    		<td nowrap="nowrap">
                <?php echo linkAction('editcontent',$video["cName"],'id='.$video["iId"])?>
    		      <input type="hidden" name="listid[]" value="<?php echo $video["iId"]?>" />
    		</td>
    		<td align=center>
    			<select name="liststatus[]" id="iStatus_content_<?php echo $i ?>">
    				<?php echo  liststatus($video["iStatus"]);?>
    			</select>
    		</td>

    		<td align=center>
    			<?php echo linkAction('editcontent',getLang('Edit'),'id='.$video["iId"])?> -
                <?php echo linkAction('delcontent',getLang('Delete'),'id='.$video["iId"])?>
    		</td>
    		<td></td>
    		</tr>
    	<?php
    	}
        if(count($videos)==0)
        {
        ?>
        <tr>
             <td align="center" colspan="5">
                <font color="Red">Not found video</font>
            </td>
        </tr>
        <script>showhide('applybut');</script>
        <?php
        }
    	?>
        </table>
		<?php echo $show_page?>
	</form>
<?php
}
?>
		</td>
	</tr>
</table>
<script type="text/javascript">
(new TableDnD).init("tblsort");
</script>